<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/9/21
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
  <shiro:guest>
    <p>游客</p>
    <a href="<c:url value="/login"/>">登入</a>
    <a href="<c:url value="/register"/>">注册</a>
  </shiro:guest>

  <shiro:user>
    <p>身份:<shiro:principal/></p>
    <a href="<c:url value="list"/>">客户列表</a>
    <a href="<c:url value="/logout"/>">退出</a>
  </shiro:user>
</body>
</html>
